home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7597 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  35 lines

  1. Newsgroups: comp.lang.c++,comp.os.msdos.programmer
  2. Path: news.uunet.ca!nypl!torfree!ak892
  3. From: ak892@torfree.net (Bruce DeVisser)
  4. Subject: Re: Timer (0x1C) Interrupt exactly 18.2 seconds?
  5. Message-ID: <Dn9FMB.19s.0.sheppard@torfree.net>
  6. Followup-To: comp.lang.c++,comp.os.msdos.programmer
  7. Organization: Toronto Free-Net
  8. X-Newsreader: TIN [version 1.2 PL2]
  9. References: <4givrv$cim@midland.co.nz>
  10. Date: Sat, 24 Feb 1996 03:13:23 GMT
  11.  
  12. Jarrod S Lowe (lowefam@igrin.co.nz) wrote:
  13. : Hi
  14.  
  15. : I have a C++ Program (on DOS) in which a function is attached to the
  16. : Timer (0x1C) Interrupt.
  17.  
  18. : [snip]
  19.  
  20. : This program is expected to run, continually, for YEARS - so a drift
  21. : that shows up in 5 minutes will make it unusable.
  22.  
  23. : Does anybody have any ideas WHY this is happening?
  24.  
  25. Yes; because the timer is not exactly 18.2 Hz. Try taking the oscillator 
  26. frequency -- 1.19318 MHz (which may drift slightly, so don't get too 
  27. carried away with precision), dividing it by 65536, and see what you come 
  28. up with.
  29.  
  30. -- 
  31. __
  32.    Bruce DeVisser
  33.    BMD Software Engineering
  34.    905-857-5653
  35.